$OpenBSD: patch-w_keyboard_c,v 1.2 2009/06/09 13:19:44 jasper Exp $
--- w_keyboard.c.pat.orig	Tue May 20 21:38:18 2008
+++ w_keyboard.c	Tue Jun  9 15:12:20 2009
@@ -17,8 +17,9 @@
  */
 
 #include <sys/types.h>
+#include <stdlib.h>
 #include <regex.h>
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
 #include <alloca.h>
 #endif
 #include <string.h>
@@ -41,7 +42,8 @@
 #define REG_NOERROR REG_OKAY
 #endif
 
-#if defined(__FreeBSD__) && !defined(REG_NOERROR)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) \
+	&& !defined(REG_NOERROR)
 #define REG_NOERROR 0
 #endif
 
